package com.aisile.user;

import com.aisile.common.yongyou.YongYouCommonScan;
import com.aisile.model.user.dtos.AuthDto;
import com.aisile.user.service.ApUserRealnameService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Auther:yry
 * @Date:2024/7/17 0017
 * @VERSON:1.0
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class YongyouTestDemo {

    @Autowired
    YongYouCommonScan yongYouCommonScan;


    @Autowired
    private ApUserRealnameService apUserRealnameService;

    @Test
    public void test(){
        boolean flag = yongYouCommonScan.matchIdentityScan("1","1",1);
        System.out.println(flag);
    }

    @Test
    public void autoUpdata(){
        AuthDto dto = new AuthDto();
        dto.setId(4);
        apUserRealnameService.autoUpdateStatusById(dto);
    }


}
